package com.wtb.javatool.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.persistence.criteria.CriteriaBuilder;
import java.util.Date;

@Data
@ToString
@ApiModel(value = "Course",description="课程")
@NoArgsConstructor
@AllArgsConstructor
public class Favorite {
    private static final long serialVersionUID = 5715043674151551828L;
    @ApiModelProperty(value = "收藏id")
    private Integer favoriteId;
    @ApiModelProperty(value = "资源id")
    private Integer resourceId;
    @ApiModelProperty(value = "用户id")
    private Integer userId;
    @ApiModelProperty(value = "收藏时间")
    private Date favoriteTime;
    public Favorite(Integer resourceId,Integer userId) {
        this.resourceId=resourceId;
        this.userId=userId;
    }
}
